<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>函数的两种写法</title>
</head>
<body>
    <div id="app">
        {{msg}}
        <br/>
        {{count}}
        <button @click="changeCount">点击</button>
        <button @click="changeCount11111">点击</button>
    </div>
</body>
</html>
<script src="./js/2.7.14_dist_vue.js"></script>
<script>
    new Vue({
        el:"#app",
        data:{
            msg:"测试",
            count:1,
        },
        methods:{
            changeCount:function(){
                this.count++;
            },
            changeCount11111(){
                this.count++;
            }
        }
    })
</script>